<div class="widget properties last">
    <div class="title">
        <h2>Квартиры пользователя</h2>
    </div><!-- /.title -->

    <div class="content">
        <?php foreach($flats as $flat){ ?>
            <div class="property">
                <div class="image">
                    <a href="<?= $flat->сity->url . "/" . $flat->id; ?>"></a>
                    <?= ImageResizer::getThumb($flat->img0, 'data/imgs/flat/' . $flat->id . '/', $flat->img0, 100, 74) ?>
                </div><!-- /.image -->

                <div class="wrapper">
                    <div class="title">
                        <h3>
                            <a href="<?= $flat->сity->url . "/" . $flat->id; ?>"><?= $flat->street . " " . $flat->home; ?></a>
                        </h3>
                    </div><!-- /.title -->
                    <div class="location"><?= $flat->region->name . ", " . $flat->сity->name; ?></div><!-- /.location -->
                    <div class="price"><?= $flat->getPrice() ?></div><!-- /.price -->
                </div><!-- /.wrapper -->
            </div><!-- /.property -->
        <?php } ?>        
    </div><!-- /.content -->
</div><!-- /.properties -->